package com.atguigu.client;


import com.atguigu.result.RetVal;
import com.atguigu.search.SearchParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @Description
 * @Author: TT
 * @Date: 2022/7/25 20:41
 */
@FeignClient(value ="shop-search")
public interface SearchFeignClient {
    //2.商品的上架
    @PostMapping("search/onSale/{skuId}")
    public String onSale(@PathVariable Long skuId);
    //2.商品的下架
    @PostMapping("search/offSale/{skuId}")
    public String offSale(@PathVariable Long skuId);
    //3，商品查询
    @PostMapping("search/searchProduct")
    public RetVal searchProduct(@RequestBody SearchParam searchParam);
}